<?php 
namespace App\Http\Controllers;

use App\Http\Controllers\Controller;
use App\Models\User;
use \DB; 
use Auth;
class LoginController extends Controller {

    /**
     * 显示首页。
     *
     * @return Response
     */
    public function getIndex()
    {
    	if(Auth::check()){
    		
    		$url = URL('home?submodule_id=4');
    		return 	redirect($url);
    	}
      return view('login');
    }

}